import { IFeidaoAiBrowserComponent } from '@dfeidao/atom-web/interfaces';
import set_node_cls from '@dfeidao/atom-web/ui/set-node-cls';
import render from '@dfeidao/atom-web/render/render';
import p001 from './p001';
import nodejs from '@dfeidao/atom-web/msg/nodejs';

export default async function a001(fd: IFeidaoAiBrowserComponent, risk_po_name: string, render_data: string) {
	// 详情窗口 //risk_po_name_no

	const n = fd.data.node.querySelector<HTMLDivElement>('[data-id="detail"]');
	set_node_cls(n, 'display-n', false);
	const a = fd.data.node.querySelector<HTMLSpanElement>('[data-id="risk_po_name_no"]');
	a.innerText = risk_po_name;
	const b = fd.data.node.querySelector<HTMLSpanElement>('[data-id="risk_po_type_name"]');
	b.innerText = render_data;

	const res = await nodejs('risk-point/zj-000005/s001', {
		filter: {
			risk_po_name: '',
			risk_po_type_no: ''
		}
	});


	render(fd, res, p001, 'p001', 'inner');





}
